{template admin/header}

	<form action="manage.php?m=seafood_recommend&a=add" method="post" name="search">
	<input name="sid" type="text" id="sid" value="{$sid}" style="display:none;">
	
	<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
		<tr class="header">
			<td colspan="2">搜索商家</td>
		</tr>
		<tr>
			<td class="altbg1" width="150">
			海鲜名称:
			</td>
			<td class="altbg2">
			{$sname}
			</td>
		</tr>
		<tr>
			<td class="altbg1" width="150">
			商家名称:
			</td>
			<td class="altbg2">
			<input name="bname" type="text" id="bname" value="{$bname}" size="40">		
			</td>
		</tr>
		<tr>
			<td class="altbg1" width="150">&nbsp;
			</td>
			<td class="altbg2">
				<button name="do" value='' type="submit" class="button">搜索一下</button>
			</td>
		</tr>
		
	</table>
	</form>

	<form method="post" action="manage.php?m=seafood_recommend&a=do_add&sid={$sid}">
	  <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="120" height="30" align="right">内容筛选查看：</td>
          <td width="120" align="right"><a href="manage.php?m=seafood">所有海鲜</a></td>
        </tr>
      </table>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
			<tr class="header">
				<td width="30"><input class="checkbox" type="checkbox" name="chkall" onclick="checkall(this.form,'ids')" ></td>
				<td width="45">ID</td>
				<td>名称</td>
				<td>logo</td>
				<td>服务/环境/价格评分</td>
				<td>已推荐？</td>
				<td width="60">操作</td>
			</tr>
			<!--{loop $list $item}-->
			<tr align="center">
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					<input class="checkbox" type="checkbox" name="ids[]" value="$item[id]" >
				</td>
				<td class="altbg2" style="border-bottom:1px dashed #ccc">
					<a href="manage.php?m=business&a=modify&id={$item[id]}">{$item[id]}</a>
				</td>
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					<a href="manage.php?m=business&a=modify&id={$item[id]}">{$item[name]}</a>
				</td>
				<td class="altbg2" style="border-bottom:1px dashed #ccc">
					<!--{if $item[image]}-->
					<a href="{$item[image]}" target="_blank"><img width="50" height="50" src="{$item[image]}"></a><br />
					<!--{/if}-->
				</td>
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					{$item[service_score]} / {$item[env_score]} / {$item[price_score]}
				</td>
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					<!--{if in_array($item[id], $r_ids) }-->
					是
					<!--{/if}-->
				</td>
				<td class="altbg2" style="border-bottom:1px dashed #ccc">
					<!--{if !in_array($item[id], $r_ids) }-->
					<a href="manage.php?m=seafood_recommend&a=do_add&sid={$sid}&ids={$item[id]}">推荐</a>
					<!--{/if}-->
				</td>
			</tr>
			<!--{/loop}-->
		
		</table>
		
		<center><input class="button" type="submit" name="cronssubmit" value="推荐"></center>
	</form>
	
	<br />